import axios, { type AxiosRequestConfig } from 'axios';
const netease = axios.create({
    baseURL: 'https://m.you.163.com/',
    timeout: 5000,
});

netease.interceptors.request.use(
    (config: AxiosRequestConfig<any>) => {

        return config;
    }, err => {
        return Promise.reject(err)
    }
);

netease.interceptors.response.use(res => {
    return res.data
}, err => {
    return Promise.reject(err)
})

export default netease